
const vueConstructorData={
    v: 13.1,
    s: 11.55,
    i: 0,
    k1:0,
    k2:0,
    async mounted() {
        window.V=this;
    },
    test(){
        window.M.rawPost("/uartSend","AA")

    }
}

window.onload =async function () {
    PetiteVue.createApp(vueConstructorData).mount("#main");
}
const source = new EventSource('http://localhost:8888/sseServer?clientId=77');

source.addEventListener('slide', e => {
    let r=  JSON.parse(e.data);
    eval("V."+r.code);
}, false);